{% if election.voting_has_started %}
  {% if not election.voting_has_stopped %}

<div id="cast_form">
<form id="cast_confirm_form" method="post" action="" onsubmit="show_waiting()">
    <input type="hidden" name="csrf_token" value="{{csrf_token}}" />

{% if status_update_label %}
<div class="round" style="background: #eee; padding: 10px; border: 1px dashed #888;">
<input type="checkbox" name="status_update" value="1" checked /> {{status_update_label}}<br />
<blockquote style="font-size: 1.3em;">
"{{status_update_message}}"
</blockquote>
<input type="hidden" name="status_update_message" value="{{status_update_message}}" />
</div>
<br />
{% endif %}

登录为 <u>{{voter.display_html_big|safe}}</u><br /><br />

    <button type="submit" class="large">投出选票</button>
    <span style="font-size:0.8em;"><br />您可以任意进行投票<br />只有最后一次投票会被计入</span>
</form>

<p>
    <button class="tiny" onclick="if (confirm('Are you sure you want to clear this ballot and NOT cast it?')) {document.location='{% url "election@view" election.uuid %}';}">取消</button><br />
    <span style="font-size:0.8em;">如果您取消当前投票，您的选票 <em>不</em> 会被记录.<br />
    当然您也可以重新开始选举流程.</span>
</p>

<!-- for now, for CSRF protection, no auto-submit just yet (benadida) -->
<!-- <script>$('#cast_confirm_form').submit()</script> -->

</div>
  {% else %}
<p style="font-size:1.4em;">
  抱歉，投票已经结束.
</p>
  {% endif %}
{% else %}
<p style="font-size:1.4em;">
  抱歉，投票暂未开始.
</p>
{% endif %}